/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.ugd.controller;

import edu.ugd.domain.EncodingForm;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.SessionAttributes;




/**
 * @author Ivan.Arsov
 */
@Controller
@SessionAttributes({"signupForm"})
public class WelcomeController {

    

    @RequestMapping(value = "/base64*", method = RequestMethod.GET)
    public String doLogin(
            HttpServletRequest req,
            ModelMap model) {
        HttpSession session = req.getSession();
        session.setAttribute("encodingForm", new EncodingForm());

        return "base64";
    }

}
